package cn.juque.workflow.service;

import cn.juque.common.base.PageInfo;
import cn.juque.workflow.entity.LeaveInfo;

import java.util.List;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>请假申请单信息</li>
 * </ul>
 * @date 2023-01-31 16:31:27
 **/
public interface ILeaveInfoService {

    /**
     * 查询
     *
     * @param leaveInfo leaveInfo
     * @return List<LeaveInfo>
     */
    List<LeaveInfo> listInfoWithoutPage(LeaveInfo leaveInfo);

    /**
     * 分页查询
     *
     * @param pageInfo  pageInfo
     * @param leaveInfo leaveInfo
     * @return DataGrid<LeaveInfo>
     */
    List<LeaveInfo> listInfoWithPage(PageInfo pageInfo, LeaveInfo leaveInfo);

    /**
     * 详情
     *
     * @param id 主键
     * @return LeaveInfo
     */
    LeaveInfo detail(String id);
}
